package com.meida.module.bus.client.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * 后台新增会员记录表
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_viprecord")
@TableAlias("viprecord")
@ApiModel(value = "BusViprecord对象", description = "后台新增会员记录表")
public class BusViprecord extends AbstractAllEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "vipRecordId", type = IdType.ASSIGN_ID)
    private Long vipRecordId;

    private String userName;

    private String userPhone;

    @ApiModelProperty(value = "支付类型（PAY_WX微信  PAY_ALI支付宝 3线下PAY_UNDERLINE）")
    private String payType;

    private Long paywayId;

    @ApiModelProperty(value = "商品Id(且类型为卡)")
    private Long goodsId;

    @ApiModelProperty(value = "开卡日期")
    private String startDate;

    @ApiModelProperty(value = "到期日期")
    private String endDate;

    @ApiModelProperty(value = "(1已给，2未给)实体卡")
    private Integer isGive;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "收款凭证图片")
    private String voucherImg;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "是否审核(1审核中，2区域经理审核通过，3区域经理审核拒绝)）")
    private Integer isCheck;

    @ApiModelProperty(value = "销售")
    private Long employeeId;

    @ApiModelProperty(value = "(1销售端，2后台)")
    private Integer sourceType;

    @ApiModelProperty(value = "添加人")
    private Long optUserId;

    @ApiModelProperty(value = "开卡区域")
    private Long airportId;

    @ApiModelProperty(value = "(1已修改,2未修改)")
    private Integer isChange;

    private String checkDate;

    private String checkRemark;

    @ApiModelProperty(value = "审核人")
    private Long checkUserId;

}
